﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace VsSpeakerCompanion.UI
{
    /// <summary>
    /// Interaction logic for Login.xaml
    /// </summary>
    internal partial class LoginControl : UserControl
    {
        internal event EventHandler<EventArgs> Login;

        internal LoginControl()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            OnLogin(new EventArgs());
        }

        /// <summary>
        /// Raises the Login event
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnLogin(EventArgs e)
        {
            if (Login != null)
            {
                Login(this, e);
            }
        }
    }
}
